<?php
/**
 *	Data Model of Roles.
 *	@package		mv2.model
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.08.2007
 *	@version		0.1
 */
/**
 *	Data Model of Roles.
 *	@package		mv2.model
 *	@extends		CMF_Krypton_Core_Model
 *	@author			Christian Würker <Christian.Wuerker@CeuS-Media.de>
 *	@since			29.08.2007
 *	@version		0.1
 */
final class Model_Role extends CMF_Krypton_Core_Model
{
	/**
	 *	Constructor.
	 *	@access		public
	 *	@param		int			$roleId			ID of Role
	 *	@return		void
	 */
	public function __construct( $roleId = NULL )
	{
		$tableName	= "roles";
		$columns	= array(
			"roleId",
			"title",
			"description",
			"created",
			"modified",
		);
		$primaryKey	= $columns[0];
		$indices	= array( $columns[1] );
		parent::__construct( $tableName, $columns, $primaryKey, $$primaryKey );
		parent::setIndices( $indices );
	}
}
?>